from os.path import exists, join
from Document import Document
from Lexicon import Lexicon
from config import *

class Query:
	
	'''
	for a specific query indexed by its number
	'''
	def __init__(self, query_id, ans_doc, query):
		self.query_id = query_id
		self.ans_doc = ans_doc
		self.query = query
	#query有三个属性，ansdoc代表与这个query相关的文档编号，query代表这个query的字面内容，query_id是这个query的编号	
	def getAnsdoc(self):
		return self.ans_doc
	def getQuery(self):
		return self.query
	def getQueryId(self):
		return self.query_id

	
	def setAnsdoc(self, ans_doc):
		self.ans_doc = ans_doc
	def setQuery(self, query):
		self.query = query
	def setQueryId(self, query_id):
		self.query_id = query_id

